﻿using FluentValidation;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OpenAI.Infrastructure.Requests
{
    public record ChatMessageRequest(int Cid, string Content,Guid AppUserId,bool IsBot)
    {
    }
    public class ChatMessageRequestValidator : AbstractValidator<ChatMessageRequest>
    {
        public ChatMessageRequestValidator() 
        {
            RuleFor(x => x.Cid).NotEqual(0);
            RuleFor(x => x.Content).NotNull().NotEmpty();
        }
    }
}
